/********************************************************
 Name          : pcc.h
 Author        : Khachatur Gyozalyan
 Copyright     : Copyright by Antel Systems
 Description   :
 **********************************************************/
// Include Files
#ifndef PCC_H_
#define PCC_H_

#define PCC_BLOCK_SIZE 20

struct pcc_header
{
	unsigned char byte_FF;
	unsigned char byte_00;
	unsigned char Packet_ID;
	unsigned char Data_bytes_number_high;
	unsigned char Data_bytes_number_low;
};

void pcc_interleave(unsigned char * data,int p_iNumberOfBlocks);
void pcc_deinterleave(unsigned char *buffer, unsigned int length);
unsigned int pcc_create_packet(unsigned char *in_buffer,unsigned char *out_buffer, unsigned int length);
unsigned short PCC_CRC16(const unsigned char *p_pBuffer,int p_Size);


#endif /* PCC_H_ */
